<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="breadcrumb_wrap">
        <ul class="breadcrumb">
            <li>您的位置：</li>
            <li> <a href="coupon_list.html">优惠券</a> <span class="divider">></span> </li>
            <li class="active">列表</li>
        </ul>
    </div>
    <ul id="myTab" class="nav nav-tabs pro_nav_tabs">
        <li class="active"> <a href="/xdd/common/coupon/setting">优惠券设置</a> </li>
    </ul>
    <div class="select_box " >
        <form class="form-horizontal" role="form">

            <div class="form-group col-md-12">
                <label class="control-label">优惠券：</label>
                <div>{{coupon.title}}</div>
            </div>
            <div class="form-group  col-sm-12">
                <label class="control-label">选择用户：</label>
                <div class="select_box " >
                        <div class="form-group col-md-4">
                            <label class="control-label">账号：</label>
                            <input type="text" class="form-control" ng-model="searchParam.userName">
                        </div>
                        <div class="form-group col-md-4">
                            <label class="control-label">公司名称：</label>
                            <input type="text" class="form-control" ng-model="searchParam.companyName">
                        </div>
                        <div class="form-group col-md-4">
                            <label class="control-label">信用代码：</label>
                            <input type="text" class="form-control" ng-model="searchParam.xydm">
                        </div>
                        <div class="form-group col-md-4">
                            <label class="control-label">手机号：</label>
                            <input type="text" class="form-control" ng-model="searchParam.phone">
                        </div>

                        <div class="form-group col-md-4 button_box ">
                            <button type="button" class="btn btn-primary" ng-click="searchList()"><i class="glyphicon glyphicon-search"></i>搜索</button>
                        </div>
                </div>
                <div class="table-responsive con_list">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th><input type="checkbox" ng-model="allCheck"></th>
                            <th>账号</th>
                            <th>姓名</th>
                            <th>公司名称</th>
                            <th>信用代码</th>
                            <th>注册时间</th>
                            <th>状态</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="user in userList">
                            <th><input type="checkbox" ng-checked="allCheck" name="userId" value="{{user.id}}"></th>
                            <td>{{user.userName}}</td>
                            <td>{{user.realName}}</td>
                            <td>{{user.companyName}}</td>
                            <td>{{user.xydm}}</td>
                            <td>{{user.registTime|dateStr:'yyyy-MM-dd HH:mm:ss'}}</td>
                            <td ng-if="user.checkStatus==0">未审核</td>
                            <td ng-if="user.checkStatus==1">通过审核</td>
                            <td ng-if="user.checkStatus==2">未通过审核</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="page_wrap">
                    <div class="text-center scott">
                        <uib-pagination  total-items="totalItems" ng-model="currentPage" boundary-links="true" max-size="5"   ng-change="pageChanged()" items-per-page="itemsPerPage" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                    </div>
                </div>
            </div>
            <div class="form-group col-md-2">
                <label class="control-label">数量/张：</label>
                <input type="text" class="form-control" ng-model="number" id="numberInput" ng-keyup="numberInput()">
            </div>
        </form>
    </div>
    <div class="button_box table_btn_box editor_btn_box ">
        <button type="button" class="btn btn-primary btn_add" ng-click="submitCouponUser()" ng-disabled="sendBtn"><i class="glyphicon glyphicon-ok" ></i>提交</button>
        <a href="/xdd/common/coupon/list"><button type="button" class="btn btn-primary back" ><i class="glyphicon glyphicon-chevron-left"></i>返回</button></a>
    </div>
</div>
